import React, {Component} from 'react';
import {Select, Checkbox} from 'element-react';
import './index.css'

export default class Address extends Component {

    constructor(props) {
        super(props);
        this.state = {};
    }

    render() {
        return (
            <div className='select_box'>
                <span className='spaned'>{this.props.buth} :</span>
                <Select
                    placeholder={this.props.value}
                    clearable={this.props.clearable}
                    value={this.props.value}
                    multiple={this.props.multiple}
                    className={this.props.clsname}
                    onChange={this.props.selChange}
                >
                    {
                        this.props.options.map((el) => {
                            return <Select.Option key={el.value} label={el.label}
                                                  value={el.value}>{el.label}</Select.Option>
                        })
                    }
                </Select>
            </div>
        )
    }

}